let MYSQL_CONF,
	REDIS_CONF;
if (process.env.NODE_ENV == 'dev') {
	// 开发环境
	MYSQL_CONF = {
		host: 'localhost',
		user: 'root',
		password: 'root',
		port: '3306',
		database: 'myblog'
	};
	REDIS_CONF = {
		port: 6379,
		host: '127.0.0.1'
	};
} else {
	MYSQL_CONF = {
		host: 'localhost',
		user: 'root',
		password: 'root',
		port: '3306',
		database: 'myblog'
	};
	REDIS_CONF = {
		port: 6379,
		host: '127.0.0.1'
	};
}

module.exports = {
	MYSQL_CONF,
	REDIS_CONF
};
